#!/usr/env/python

def repeater(value):
    while True:
        new = (yield value)
        if new is not None: 
            print '1'
            value = new

r = repeater(42)
print r.next()
print r.send('hello, world')
